<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Registreren';
$this->breadcrumbs=array(
	'Register',
);
?>
<h1>Registreren</h1>

<p>Vul het registratieformulier in om een account aan te maken:</p>


<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'registration-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
    
        <p class="note">Velden met een <span class="required">*</span> zijn verplicht.</p>
        
        <div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'repeatpassword'); ?>
		<?php echo $form->passwordField($model,'repeatpassword'); ?>
		<?php echo $form->error($model,'repeatpassword'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'firstname'); ?>
		<?php echo $form->textField($model,'firstname'); ?>
		<?php echo $form->error($model,'firstname'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'prefix'); ?>
		<?php echo $form->textField($model,'prefix'); ?>
		<?php echo $form->error($model,'prefix'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'lastname'); ?>
		<?php echo $form->textField($model,'lastname'); ?>
		<?php echo $form->error($model,'lastname'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'emailaddress'); ?>
		<?php echo $form->textField($model,'emailaddress'); ?>
		<?php echo $form->error($model,'emailaddress'); ?>
	</div>
        <div class="row buttons">
		<?php echo CHtml::submitButton('Registreer'); ?>
	</div>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->